﻿using SalePerformance.Model.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SalePerformance.Provider
{
    public class ProviderFactory : IProviderFactory
    {
        private ISalePerformanceProvider salePerformance = null;
        public ISalePerformanceProvider SalePerformance
        {
            get
            {
                if (salePerformance == null) salePerformance = new SalePerformanceProvider();
                return salePerformance;
            }
        }
        private IHuntingCustomerProvider huntingCustomer = null;
        public IHuntingCustomerProvider HuntingCustomer
        {
            get
            {
                if (huntingCustomer == null) huntingCustomer = new HuntingCustomerProvider();
                return huntingCustomer;
            }
        }
    }
}
